<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>root.engine.guiComponentPanel</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;root ::
        <a href="root.engine-module.html">Package&nbsp;engine</a> ::
        Module&nbsp;guiComponentPanel
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="root.engine.guiComponentPanel-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="root.engine.guiComponentPanel-module.html">Module root.engine.guiComponentPanel</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""Subclass of ComponentPanel, which is generated by wxFormBuilder."""</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module root.engine.gui=root.engine.gui-module.html"><a title="root.engine.gui" class="py-name" href="#" onclick="return doclink('link-0', 'gui', 'link-0');">gui</a></tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pickle</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module root.engine.SF=root.engine.SF-module.html,Class root.engine.SF.SF=root.engine.SF.SF-class.html"><a title="root.engine.SF
root.engine.SF.SF" class="py-name" href="#" onclick="return doclink('link-1', 'SF', 'link-1');">SF</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name"><a title="root.engine.SF
root.engine.SF.SF" class="py-name" href="#" onclick="return doclink('link-2', 'SF', 'link-1');">SF</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Module root.engine.Yawl2sf=root.engine.Yawl2sf-module.html"><a title="root.engine.Yawl2sf" class="py-name" href="#" onclick="return doclink('link-3', 'Yawl2sf', 'link-3');">Yawl2sf</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class root.engine.Yawl2sf.Yawl=root.engine.Yawl2sf.Yawl-class.html"><a title="root.engine.Yawl2sf.Yawl" class="py-name" href="#" onclick="return doclink('link-4', 'Yawl', 'link-4');">Yawl</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment"># Implementing ComponentPanel</tt> </tt>
<a name="guiComponentPanel"></a><div id="guiComponentPanel-def"><a name="L15"></a><tt class="py-lineno">15</tt> <a class="py-toggle" href="#" id="guiComponentPanel-toggle" onclick="return toggle('guiComponentPanel');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html">guiComponentPanel</a><tt class="py-op">(</tt><tt class="py-base-class">gui</tt><tt class="py-op">.</tt><tt class="py-base-class">ComponentPanel</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="guiComponentPanel-expanded"><a name="guiComponentPanel.__init__"></a><div id="guiComponentPanel.__init__-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="guiComponentPanel.__init__-toggle" onclick="return toggle('guiComponentPanel.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.__init__-expanded"><a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-docstring">                Initialize the component panel</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-docstring">                Add the Main module to the root of the tree</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">                <tt id="link-5" class="py-name"><a title="root.engine.gui" class="py-name" href="#" onclick="return doclink('link-5', 'gui', 'link-0');">gui</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Class root.engine.gui.ComponentPanel=root.engine.gui.ComponentPanel-class.html"><a title="root.engine.gui.ComponentPanel" class="py-name" href="#" onclick="return doclink('link-6', 'ComponentPanel', 'link-6');">ComponentPanel</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method root.engine.SF.SF.__init__()=root.engine.SF.SF-class.html#__init__,Method root.engine.SP.Event.__init__()=root.engine.SP.Event-class.html#__init__,Method root.engine.SP.Job.__init__()=root.engine.SP.Job-class.html#__init__,Method root.engine.SP.Machine.__init__()=root.engine.SP.Machine-class.html#__init__,Method root.engine.SP.SP.__init__()=root.engine.SP.SP-class.html#__init__,Method root.engine.SP.Schedule.__init__()=root.engine.SP.Schedule-class.html#__init__,Method root.engine.Task.Allocation.__init__()=root.engine.Task.Allocation-class.html#__init__,Method root.engine.Task.Pop.__init__()=root.engine.Task.Pop-class.html#__init__,Method root.engine.Task.Process.__init__()=root.engine.Task.Process-class.html#__init__,Method root.engine.Task.Push.__init__()=root.engine.Task.Push-class.html#__init__,Method root.engine.Task.Selection.__init__()=root.engine.Task.Selection-class.html#__init__,Method root.engine.Task.Task.__init__()=root.engine.Task.Task-class.html#__init__,Method root.engine.Yawl2sf.Xtask.__init__()=root.engine.Yawl2sf.Xtask-class.html#__init__,Method root.engine.Yawl2sf.Yawl.__init__()=root.engine.Yawl2sf.Yawl-class.html#__init__,Method root.engine.gui.ComponentPanel.__init__()=root.engine.gui.ComponentPanel-class.html#__init__,Method root.engine.gui.MainFrame.__init__()=root.engine.gui.MainFrame-class.html#__init__,Method root.engine.gui.SchedulePanel.__init__()=root.engine.gui.SchedulePanel-class.html#__init__,Method root.engine.guiComponentPanel.guiComponentPanel.__init__()=root.engine.guiComponentPanel.guiComponentPanel-class.html#__init__,Method root.engine.guiMainFrame.guiMainFrame.__init__()=root.engine.guiMainFrame.guiMainFrame-class.html#__init__,Method root.engine.guiSchedulePanel.guiSchedulePanel.__init__()=root.engine.guiSchedulePanel.guiSchedulePanel-class.html#__init__,Method root.engine.utils.Matrix.__init__()=root.engine.utils.Matrix-class.html#__init__,Method root.engine.utils.Stat.__init__()=root.engine.utils.Stat-class.html#__init__,Method root.engine.utils.Timer.__init__()=root.engine.utils.Timer-class.html#__init__"><a title="root.engine.SF.SF.__init__
root.engine.SP.Event.__init__
root.engine.SP.Job.__init__
root.engine.SP.Machine.__init__
root.engine.SP.SP.__init__
root.engine.SP.Schedule.__init__
root.engine.Task.Allocation.__init__
root.engine.Task.Pop.__init__
root.engine.Task.Process.__init__
root.engine.Task.Push.__init__
root.engine.Task.Selection.__init__
root.engine.Task.Task.__init__
root.engine.Yawl2sf.Xtask.__init__
root.engine.Yawl2sf.Yawl.__init__
root.engine.gui.ComponentPanel.__init__
root.engine.gui.MainFrame.__init__
root.engine.gui.SchedulePanel.__init__
root.engine.guiComponentPanel.guiComponentPanel.__init__
root.engine.guiMainFrame.guiMainFrame.__init__
root.engine.guiSchedulePanel.guiSchedulePanel.__init__
root.engine.utils.Matrix.__init__
root.engine.utils.Stat.__init__
root.engine.utils.Timer.__init__" class="py-name" href="#" onclick="return doclink('link-7', '__init__', 'link-7');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">parent</tt><tt class="py-op">)</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">Hide</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">         </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">                 </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">                 </tt>
<a name="guiComponentPanel.changeStdout"></a><div id="guiComponentPanel.changeStdout-def"><a name="L28"></a><tt class="py-lineno">28</tt> <a class="py-toggle" href="#" id="guiComponentPanel.changeStdout-toggle" onclick="return toggle('guiComponentPanel.changeStdout');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#changeStdout">changeStdout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.changeStdout-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.changeStdout-expanded"><a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">savedOut</tt> <tt class="py-op">=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">,</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">consoleText</tt> </tt>
</div><a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt class="py-comment">#               sys.stderr = self.consoleText</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt>
<a name="guiComponentPanel.restoreStdout"></a><div id="guiComponentPanel.restoreStdout-def"><a name="L33"></a><tt class="py-lineno">33</tt> <a class="py-toggle" href="#" id="guiComponentPanel.restoreStdout-toggle" onclick="return toggle('guiComponentPanel.restoreStdout');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#restoreStdout">restoreStdout</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.restoreStdout-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.restoreStdout-expanded"><a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">,</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stderr</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">savedOut</tt> </tt>
</div><a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">                 </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">        <tt class="py-comment">#Handlers</tt> </tt>
<a name="guiComponentPanel.onSaveBest"></a><div id="guiComponentPanel.onSaveBest-def"><a name="L38"></a><tt class="py-lineno">38</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onSaveBest-toggle" onclick="return toggle('guiComponentPanel.onSaveBest');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onSaveBest">onSaveBest</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onSaveBest-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onSaveBest-expanded"><a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">                <tt class="py-name">filename</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">bestSavePicker</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">                <tt class="py-name">pickle</tt><tt class="py-op">.</tt><tt class="py-name">dump</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">.</tt><tt class="py-name">sp</tt><tt class="py-op">.</tt><tt class="py-name">best</tt><tt class="py-op">,</tt> <tt class="py-name">open</tt><tt class="py-op">(</tt><tt class="py-name">filename</tt><tt class="py-op">,</tt> <tt class="py-string">'wb'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">         </tt>
<a name="guiComponentPanel.onFlowFile"></a><div id="guiComponentPanel.onFlowFile-def"><a name="L42"></a><tt class="py-lineno">42</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onFlowFile-toggle" onclick="return toggle('guiComponentPanel.onFlowFile');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onFlowFile">onFlowFile</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onFlowFile-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onFlowFile-expanded"><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt> <tt class="py-op">=</tt> <tt id="link-8" class="py-name"><a title="root.engine.SF
root.engine.SF.SF" class="py-name" href="#" onclick="return doclink('link-8', 'SF', 'link-1');">SF</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">'Schedule-flow has been reset.'</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">yawl</tt> <tt class="py-op">=</tt> <tt id="link-9" class="py-name"><a title="root.engine.Yawl2sf.Yawl" class="py-name" href="#" onclick="return doclink('link-9', 'Yawl', 'link-4');">Yawl</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">flowFilePicker</tt><tt class="py-op">.</tt><tt class="py-name">GetPath</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scriptText</tt><tt class="py-op">.</tt><tt class="py-name">SetValue</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">yawl</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method root.engine.Yawl2sf.Yawl.fullScript()=root.engine.Yawl2sf.Yawl-class.html#fullScript"><a title="root.engine.Yawl2sf.Yawl.fullScript" class="py-name" href="#" onclick="return doclink('link-10', 'fullScript', 'link-10');">fullScript</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">'The configuration script is generated and printed in the text field below.'</tt> </tt>
</div><a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line"> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">         </tt>
<a name="guiComponentPanel.onViewSch"></a><div id="guiComponentPanel.onViewSch-def"><a name="L51"></a><tt class="py-lineno">51</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onViewSch-toggle" onclick="return toggle('guiComponentPanel.onViewSch');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onViewSch">onViewSch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onViewSch-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onViewSch-expanded"><a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">:</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">GetTopLevelParent</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method root.engine.guiMainFrame.guiMainFrame.addSchedulePage()=root.engine.guiMainFrame.guiMainFrame-class.html#addSchedulePage"><a title="root.engine.guiMainFrame.guiMainFrame.addSchedulePage" class="py-name" href="#" onclick="return doclink('link-11', 'addSchedulePage', 'link-11');">addSchedulePage</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">.</tt><tt class="py-name">sp</tt><tt class="py-op">.</tt><tt class="py-name">best</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line">                        <tt class="py-keyword">print</tt> <tt class="py-string">'Need a schedule-flow first.'</tt> </tt>
</div><a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line">                 </tt>
<a name="guiComponentPanel.onPause"></a><div id="guiComponentPanel.onPause-def"><a name="L58"></a><tt class="py-lineno">58</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onPause-toggle" onclick="return toggle('guiComponentPanel.onPause');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onPause">onPause</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onPause-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onPause-expanded"><a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method root.engine.SF.SF.togglePause()=root.engine.SF.SF-class.html#togglePause"><a title="root.engine.SF.SF.togglePause" class="py-name" href="#" onclick="return doclink('link-12', 'togglePause', 'link-12');">togglePause</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">                 </tt>
<a name="guiComponentPanel.onRun"></a><div id="guiComponentPanel.onRun-def"><a name="L61"></a><tt class="py-lineno">61</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onRun-toggle" onclick="return toggle('guiComponentPanel.onRun');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onRun">onRun</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onRun-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onRun-expanded"><a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line">                <tt class="py-docstring">'''</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line"><tt class="py-docstring">                when the 'run' button is pressed</tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line"><tt class="py-docstring">                '''</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method root.engine.utils.Timer.start()=root.engine.utils.Timer-class.html#start"><a title="root.engine.utils.Timer.start" class="py-name" href="#" onclick="return doclink('link-13', 'start', 'link-13');">start</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line">         </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line"> </tt>
<a name="guiComponentPanel.onExec"></a><div id="guiComponentPanel.onExec-def"><a name="L68"></a><tt class="py-lineno">68</tt> <a class="py-toggle" href="#" id="guiComponentPanel.onExec-toggle" onclick="return toggle('guiComponentPanel.onExec');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiComponentPanel.guiComponentPanel-class.html#onExec">onExec</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiComponentPanel.onExec-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiComponentPanel.onExec-expanded"><a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scriptText</tt><tt class="py-op">.</tt><tt class="py-name">GetValue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">                        <tt class="py-keyword">print</tt> <tt class="py-string">'###############   Script submitted     #####################'</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">                        <tt class="py-keyword">print</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scriptText</tt><tt class="py-op">.</tt><tt class="py-name">GetValue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">                        <tt class="py-keyword">print</tt> <tt class="py-string">'###############   Script executed      #####################'</tt> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sf</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method root.engine.SF.SF.executeScript()=root.engine.SF.SF-class.html#executeScript"><a title="root.engine.SF.SF.executeScript" class="py-name" href="#" onclick="return doclink('link-14', 'executeScript', 'link-14');">executeScript</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scriptText</tt><tt class="py-op">.</tt><tt class="py-name">GetValue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scriptText</tt><tt class="py-op">.</tt><tt class="py-name">Clear</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt> <tt class="py-keyword">as</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line">                        <tt class="py-keyword">print</tt> <tt class="py-string">'Exception: %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">e</tt> </tt>
</div></div><a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line">                         </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line"> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt> <tt class="py-op">==</tt> <tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
<a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 12 17:50:58 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
